package com.framework.SystemPage
{
	import com.framework.BasicPage;
	import com.framework.PageInfo;
	
	import flash.display.Sprite;
	
	public class PagesManager extends Sprite
	{
		public function PagesManager()
		{
			super();
		}
		
		public function createPage(pageName:int):BasicPage
		{
			switch(pageName)
			{
				case PageInfo.PAGE_PRELOADING:
				{
					return new PreloadingPage();
				}
				case PageInfo.PAGE_COVER:
				{
					return new CoverPage();
				}
					break;
				
				case PageInfo.PAGE_MAIN:
				{
					return new MainPage();
				}
					break;
				case PageInfo.PAGE_MAIN_2:
					return new MainPage2();
					break;
				
				case PageInfo.PAGE_KIOSK:
				{
					return new KioskPage();
				}
					break;
				
				case PageInfo.PAGE_PAUSE:
				{
					return new PausePage();
				}
					break;
				
				case　PageInfo.PAGE_STAGE_MODE:
				{
					return new StageModePage();
				}
					break;
				
				case PageInfo.PAGE_SURVIVE_MODE:
				{
					return new SurviveModePage();
				}
					break;
				
				case PageInfo.PAGE_STAGE_SELECT:
				{
					return new StageSelectPage();
				}
					break;
				
				case PageInfo.PAGE_SURVIVE_SELECT:
				{
					return new SurviveModePage();
				}
					break;
				
				case PageInfo.PAGE_WARE_HOUSE:
				{
					return new WareHousePage();
				}
					break;
				case PageInfo.PAGE_GAME:
				{
					return new GamePage();
				}
					break;
				default:
					return null;
			}
			
			return null;
		}
	}
}